@extends('layouts.template')

@section('title', '个人中心')

@section('header')
@endsection

@section('content')
    <script>
        $(function () {

            var validator = $("#form").validate({
                rules: {
                    alipay_name:{
                        required:true,
                        nickname:true,
                    },
                    alipay_account:{
                        required:true,
                        alipayAcount:true,
                    }
                },
                messages: {
                    alipay_name:{
                        required:'请输入实名认证的身份证名字',
                    },
                    alipay_account:{
                        required:'请输入实名认证名字的账号',
                    }
                },
                submitHandler: function(form) {
                    form.submit();
                },
            });
        });
    </script>
    <div>
        <form action="" method="post" id="form">
            {{csrf_field()}}
            <div class="wallet04">
                <h2 class="overflow_h"><span>{{$master->real_name}}</span><i>已实名认证</i></h2>
                <p>请添加本人的支付宝账号或银行卡，否则无法提现。</p>
            </div>
            <div class="cash_d5">温馨提示：目前仅支持添加支付宝账号，暂时不能添加银行卡账号。</div>
            <div class="wallet05 mar07">
                <p class="mar07"><i>支付宝名字</i><input name="alipay_name" type="text" class="inp_04" placeholder="请输入实名认证的身份证名字"></p>
                <p class="mar07"><i>支付宝账号</i><input name="alipay_account" type="text" class="inp_04" placeholder="请输入实名认证名字的账号"></p>
            </div>
            <button class="but04 mar07" type="submit">下一步</button>
        </form>
    </div>
@endsection